.class Lcom/waiqin365/h5/titlebar/a;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/titlebar/WqSearchBar;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/titlebar/WqSearchBar;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    const/4 v2, 0x0

    const/16 v5, 0x1239

    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->a(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v0

    invoke-virtual {v0, v2}, Lorg/apache/cordova/CordovaArgs;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    iput v5, v1, Landroid/os/Message;->what:I

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->mHandler:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    iget-object v2, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v2}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->a(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->a(Lcom/waiqin365/h5/titlebar/WqSearchBar;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->c(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_3

    new-instance v0, Lorg/json/JSONObject;

    iget-object v2, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v2}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->c(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v3, "hint"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_1

    const-string/jumbo v4, "searchHint"

    invoke-virtual {v2, v4, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    const-string/jumbo v3, "searchValue"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_2

    const-string/jumbo v3, "searchValue"

    invoke-virtual {v2, v3, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    invoke-virtual {v1, v2}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    const/16 v0, 0x1239

    iput v0, v1, Landroid/os/Message;->what:I

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->mHandler:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :goto_0
    return-void

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    const/16 v0, 0x1239

    iput v0, v1, Landroid/os/Message;->what:I

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->mHandler:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    iput v5, v1, Landroid/os/Message;->what:I

    iget-object v0, p0, Lcom/waiqin365/h5/titlebar/a;->a:Lcom/waiqin365/h5/titlebar/WqSearchBar;

    invoke-static {v0}, Lcom/waiqin365/h5/titlebar/WqSearchBar;->b(Lcom/waiqin365/h5/titlebar/WqSearchBar;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->mHandler:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method
